#{extends 'main.html' /}
#{set title:'All project claims' /}

#{projectsMenuBar user: user, selected: 'all'/}

#{if projects.empty}
    <div class="alert alert-info">
        No project claims.
    </div>
#{/if}
#{else}
    #{pager page: page, pages: pages, total: total/}
    <table class="table table-striped table-selectable">
        <caption>Project claims:</caption>
        #{list items:projects, as:'project'}
            <tr>
                <td><a href="@{Projects.view(project.id)}" title="View project claim">${project.moduleName}</a></td>
                <td>#{user project.owner, img: true /}</td>
                <td>
                    #{projectStatus project.status /}
                </td>
                #{projectActions user: user, project: project/}
            </tr>
        #{/list}
    </table>
#{/else}

